<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php if (isset($title)) echo $title; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.2r1/build/reset/reset-min.css"/>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
        <?php $Html->css('template'); ?>
    </head>
    <body>
        <center>
            <div id="siteWrap">
                <div id="siteHeader">
                    <div id="topBanner"></div>
                    <ul id="menu">
                        <li><?php $Html->link('Home', array('controller' => 'home')); ?></li>
                        <li><?php $Html->link('News', array('controller' => 'news')); ?></li>
                        <li><?php $Html->link('Characters', array('controller' => 'character')); ?></li>
                        <?php if (isset($logged) && $logged) { echo '<li class="right">',$Html->link('Logout', array('controller' => 'account', 'action' => 'logout')),'</li>'; } ?>
                    </ul>
                </div>
                <div id="siteContent">
                    <div id="main">
                        <?php $Layout->area('main'); ?>
                    </div>
                    <div id="lateralbar">
                        <?php $Layout->element('lateralbar'); ?>
                    </div>
                </div>
                <div id="xtibia"><a href="http://www.xtibia.com/" title="powered by XTibia.com" target="_blank">powered by XTibia.com</a></div>
            </div>
        </center>
    </body>
</html>